package com.braska.grave.netty.client.controller;

import com.braska.grave.netty.api.service.INettyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shenyuhang
 * @date 2020/3/31
 **/
@RestController
public class NettyController {

    @Autowired
    private INettyService nettyService;

    @GetMapping("welcome")
    public Object welcome() {
        return nettyService.getString();
    }

    @GetMapping("getList")
    public Object getList() {
        return nettyService.getList();
    }

    @GetMapping("getNode")
    public Object getNode() {
        return nettyService.getNode();
    }

    @GetMapping("getNodes")
    public Object getNodes() {
        return nettyService.getNodes();
    }

    @GetMapping("getMap")
    public Object getMap() {
        return nettyService.getMap();
    }
}
